Skip to content

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Sep 4, 2025

Hello!

This closes phpstan/phpstan#13450

Thanks!

@calebdw calebdw force-pushed the calebdw/push-zvsvrpvwonsx branch 2 times, most recently from 961edcc to a15515c Compare September 4, 2025 15:32
Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readonly class can have magic methods (https://3v4l.org/PNmbe) so that check should be moved above $class = $this.

@calebdw calebdw force-pushed the calebdw/push-zvsvrpvwonsx branch from a15515c to fda29d4 Compare September 4, 2025 16:21
@calebdw
Copy link
Contributor Author

calebdw commented Sep 4, 2025

Good catch, I also added a test for this

@ondrejmirtes ondrejmirtes force-pushed the calebdw/push-zvsvrpvwonsx branch from fda29d4 to a8baf69 Compare September 4, 2025 16:23
@ondrejmirtes ondrejmirtes merged commit 207639f into phpstan:2.1.x Sep 4, 2025
83 of 89 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@calebdw calebdw deleted the calebdw/push-zvsvrpvwonsx branch September 4, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Final class not checked for __get/__set on parent class

2 participants